import {postAjax} from '@/utils/axios';
import http from '@/utils/http';

export const create = (params?: any) => {
  return postAjax('bus/api/knowledge', params);
}

export const getUserKnowledge = (params?: any) => {
  return http.get('bus/api/knowledge/userKnowledge', {params});
}



export const update = (params?: any) => {
  return postAjax('bus/api/knowledge/update/' + params.id, params);
}


export const remove = (params?: any) => {
  return http.delete('bus/api/knowledge/' + params.id);
}